<template>
  <div class="neirong" @click="jr(content)">
    <!-- 标题 -->
    <div>
      <h3>{{ content.title }}</h3>
    </div>
    <!-- 标题图片 -->
    <div v-if="content.titleImgs" class="qitatupian">
      <img :src="content.titleImgs" />
    </div>
    <!-- 播报 -->
    <div class="bobao">
      <van-icon name="service-o" />
      <span>播报</span>
    </div>
  </div>
</template>

<script>
export default {
  name: "QiTa",
  mounted() {
    // console.log("classification:",this.classification);
    // console.log("content:",this.content);
  },
  methods: {
    jr(item) {
      this.$router.push({
        name: "homecontent",
        params: {
          homeneirong: item,
        },
      });
    },
  },
  props: ["classification", "content"],
};
</script>

<style scoped>
.neirong {
  min-height: 70px;
  border-bottom: 1px rgba(179, 179, 179, 0.788) solid;
  padding-bottom: 10px;
  width: calc(100vw - 20px);
  margin: 5px 10px;
}
.qitatupian {
  /* width: 100px; */
}

.qitatupian > img {
  width: 50vw;
}
.bobao {
  display: flex;
  justify-content: flex-end;
  font-weight: 600;
  color: rgb(224, 43, 43);
}
</style>